package org.osiris.server;

import org.osiris.client.model.UsuarioViewBean;

/**
 * "Spring managed" service layer interface for authentication service.
 * 
 * @author See Wah Cheng
 * @created 5 Jun 2009
 */
public interface AuthenticationService {

	/**
	 * Authenticates user.
	 * 
	 * @param username
	 * @param password
	 * @return whether authentication is successful
	 */
	UsuarioViewBean authenticate(String username, String password);

	/**
	 * Terminates a user's security session.
	 */
	void logout();
}
